package com.seer.auto.dao;

import com.seer.auto.utils.Global;
import java.util.List;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public abstract class AbstractDao<T> {

    protected JdbcTemplate template;

    public AbstractDao() {
        template = Global.get(MyJdbcTemplate.class);
    }

    public abstract List<T> list(int page, int size);
    public abstract T get(long id);
    public abstract T delete(long id);
    public abstract T update(long id, T t);
    public abstract T create(T t);
    public abstract Long count();
}
